import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/mining_invest_list_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/mining_invest_list_entity.g.dart';

@JsonSerializable()
class MiningInvestListEntity {
	List<MiningInvestListList>? list;
	int? systemTime;
	int? page;
	int? pageSize;
	int? total;

	MiningInvestListEntity();

	factory MiningInvestListEntity.fromJson(Map<String, dynamic> json) => $MiningInvestListEntityFromJson(json);

	Map<String, dynamic> toJson() => $MiningInvestListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MiningInvestListList {
	String? id;
	String? miningId;
	@JSONField(name: "Rate")
	String? rate;
	int? cycle;
	int? propNum;
	String? totalIncome;
	int? startTime;
	int? endTime;
	int? createdAt;
	int? state;
	double? amount;

	MiningInvestListList();

	factory MiningInvestListList.fromJson(Map<String, dynamic> json) => $MiningInvestListListFromJson(json);

	Map<String, dynamic> toJson() => $MiningInvestListListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}